package com.haima.sage.bigdata.api.frame.condition;

import java.util.List;

import com.haima.sage.bigdata.api.frame.condition.impl.ConditionGroupService;

public class ConditionGroup extends Condition<ConditionGroupService> {
    private List<Condition<?>> conditions;

    public ConditionGroup() {
    }

    public ConditionGroup(OperatorType operator, List<Condition<?>> conditions) {
        this.setOperator(operator);
        this.conditions = conditions;
    }

    public List<Condition<?>> getConditions() {
        return conditions;
    }

    public void setConditions(List<Condition<?>> conditions) {
        this.conditions = conditions;
    }

    @Override
    public ConditionGroupService service() {
        return new ConditionGroupService(this);
    }

}
